﻿Imports SIGI.Common.BE
Imports SIGI.BackEnd.DAC

Public Class PropertyBC
#Region "<< -SearchPropertiesTypes- >>"
    Public Shared Function SearchPropertiesTypes() As List(Of PropertyTypeBE)
        Return PropertyDAC.SearchPropertiesTypes()
    End Function
#End Region

#Region "<<- SearchByOwnerId- >>"
    Public Shared Function SearchByOwnerId(pOwnerId As Integer) As List(Of PropertyBE)
        Return PropertyDAC.SearchByOwnerId(pOwnerId)
    End Function
#End Region

#Region "<< -SearchByFilters- >>"
    Public Shared Function SearchByFilters(pIdProperty As Integer?, pOwner As String, pDirection As String, pName As String, pActive As Boolean) As DataTable
        Return PropertyDAC.SearchByFilters(pIdProperty, pOwner, pDirection, pName, pActive)
    End Function
#End Region

#Region "<< -SearchByPropertyId- >>"
    Public Shared Function SearchByPropertyId(pIdProperty As Integer) As PropertyBE
        Return PropertyDAC.SearchByPropertyId(pIdProperty)
    End Function
#End Region

#Region "<< -Delete- >>"
    Public Shared Sub Delete(pProperty As PropertyBE)
        PropertyDAC.Delete(pProperty)
    End Sub
#End Region

#Region "<< -Update- >>"
    Public Shared Sub Update(pProperty As PropertyBE)
        PropertyDAC.Update(pProperty)
    End Sub
#End Region

#Region "<< -InsertBatch- >>"
    Public Shared Sub InsertBatch(pProperties As List(Of PropertyBE))
        PropertyDAC.InsertBatch(pProperties)
    End Sub
#End Region

End Class
